package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_ZZZT"
 *     
*/
public class DmZzzt implements Serializable {

    /** identifier field */
    private String zzztDm;

    /** nullable persistent field */
    private String zzztMc;

    /** full constructor */
    public DmZzzt(String zzztDm, String zzztMc) {
        this.zzztDm = zzztDm;
        this.zzztMc = zzztMc;
    }

    /** default constructor */
    public DmZzzt() {
    }

    /** minimal constructor */
    public DmZzzt(String zzztDm) {
        this.zzztDm = zzztDm;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="ZZZT_DM"
     *         
     */
    public String getZzztDm() {
        return this.zzztDm;
    }

    public void setZzztDm(String zzztDm) {
        this.zzztDm = zzztDm;
    }

    /** 
     *            @hibernate.property
     *             column="ZZZT_MC"
     *             length="30"
     *         
     */
    public String getZzztMc() {
        return this.zzztMc;
    }

    public void setZzztMc(String zzztMc) {
        this.zzztMc = zzztMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("zzztDm", getZzztDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmZzzt) ) return false;
        DmZzzt castOther = (DmZzzt) other;
        return new EqualsBuilder()
            .append(this.getZzztDm(), castOther.getZzztDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getZzztDm())
            .toHashCode();
    }

}
